//
//  C3Atom.h
//  精通Objective-C
//
//  Created by 花强 on 2017/11/6.
//  Copyright © 2017年 花强. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface C3Atom : NSObject{
    
    //@protected支持属性的实例变量，只能在类层次结构中访问
@protected NSUInteger _protons;         //质子数
@protected NSUInteger _neutrons;        //中子数
@protected NSUInteger _electrons;       //电子数
@protected NSString * _chemicalElement; //化学元素名
@protected NSString * _atomicSymbol;    //原子符号

}


@property (nonatomic , readonly) NSUInteger protons;
@property (nonatomic , readonly) NSUInteger neutrons;
@property (nonatomic , readonly) NSUInteger electrons;
@property (nonatomic , readonly) NSString * chemicalElement;
@property (nonatomic , readonly) NSString * atomicSymbol;

-(NSUInteger)massNumber;
-(NSString *)logInfo;


@end
